package internet;

import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;

public class ServerDemo4 {
    public static void main(String[] args) throws IOException {
        ServerSocket ss = new ServerSocket(10001);

        while (true) {
            Socket s = ss.accept();
            new Thread(new ServerThread(s) ).start();
        }
        //一班来说 服务器一直开着的
        ///ss.close();

    }
}
